module.exports = (app) => {
  const { router, controller, middleware: { jwtVerify, lastTime} } = app;
  
  router.post("/admin/role/add", jwtVerify(), lastTime(), controller.role.add);
  router.post("/admin/role/edit", jwtVerify(), lastTime(), controller.role.edit);
  router.get("/admin/role/list", jwtVerify(), lastTime(), controller.role.list);
  router.get("/admin/role/delete", jwtVerify(), lastTime(), controller.role.delete);
  router.post("/admin/role/menu/add", jwtVerify(), lastTime(), controller.role.add_menu);

  router.post(
    "/api/login/test-token",
   jwtVerify(),
   lastTime(),
    controller.user.testToken
  );
};
